﻿using System;
using System.Linq;

namespace ProyectoDeTesis.Controladores
{
    public class PantallaController
    {
        public Pantalla buscarPantallaxId(int pantalla_id)
        {
            Pantalla pantalla = null;
            var db = new Bd_tesisDataContext();
            try
            {
                var query = from p in db.Pantalla
                            where p.id == pantalla_id
                            select p;

                pantalla = query.First();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
            }            

            return pantalla;
        }
    }
}
